package cn.bankAutoOffice.mapper;

import cn.bankAutoOffice.bean.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {

    /**
     * 通过部门id获取菜单id
     *
     * @param departmentId 部门id
     * @return 菜单
     */
    List<Menu> getMenuByDepartmentId(@Param("departmentId") Integer departmentId);

    /**
     *  通过一级菜单id查找二级菜单
     *
     * @param id
     * @return
     */
    List<Menu> findMenuByParentId(@Param("id") long id);

}
